Package-level declarations

Properties

Link copied to clipboard
const val FUNCTION: String
Link copied to clipboard
const val LENGTH: Int = 32
Link copied to clipboard
const val MAX_COMMANDS_IN_PTB: Int = 1024
Link copied to clipboard
const val MODULE: String
Link copied to clipboard
val NetworkToChainId: <Error class: unknown class>
Link copied to clipboard
val NetworkToFaucetAPI: <Error class: unknown class>
Link copied to clipboard
val NetworkToIndexerAPI: <Error class: unknown class>
Link copied to clipboard
val NetworkToNetworkName: <Error class: unknown class>
Link copied to clipboard
val NetworkToNodeAPI: <Error class: unknown class>
Link copied to clipboard
const val PACKAGE_ID: String
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T> bcsDecode(data: ByteArray): T
Link copied to clipboard
inline fun <T> bcsEncode(data: T): ByteArray
Link copied to clipboard
fun convertBits(data: ByteArray, fromBits: Int, toBits: Int, pad: Boolean): ByteArray
Link copied to clipboard

Decodes the base58 string into a ByteArray

Link copied to clipboard

Encodes the bytes as a base58 string (no checksum is appended).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun idToParts(id: String): <Error class: unknown class><String, String, String>
Link copied to clipboard
inline fun <T : Any> ProgrammableTransactionBuilder.inputs(vararg inputs: T): List<Argument>

Extension functions to create Argument.Inputs from various types.

Link copied to clipboard
actual fun <T> runBlocking(context: CoroutineContext, block: suspend CoroutineScope.() -> T)
expect fun <T> runBlocking(context: <Error class: unknown class> = EmptyCoroutineContext, block: suspend CoroutineScope.() -> T)
actual fun <T> runBlocking(context: <Error class: unknown class>, block: suspend CoroutineScope.() -> T)
actual fun <T> runBlocking(context: CoroutineContext, block: suspend CoroutineScope.() -> T)
actual fun <T> runBlocking(context: <Error class: unknown class>, block: suspend CoroutineScope.() -> T)
Link copied to clipboard

Extension function to create a TransactionDigest from a String.

Link copied to clipboard
Link copied to clipboard
inline fun <T : TypeTag> ProgrammableTransactionBuilder.types(vararg types: T): List<TypeTag>